package search;

/**
 * User: 86156
 * Date: 2023-04-16
 * Time: 9:44
 */
public class BasicSearch {
    public static void main(String[] args) {
        // 基本查找又叫做顺序查找,从零索引开始,挨个往后查找

        int [] arr = {1,4,6,32,7,8,432,2,1,2,5,36};
        for (int i = 0; i < arr.length; i++) {
            if(arr[i] == 54){
                System.out.println("找到了");
            }
        }
        System.out.println("找不到");

    }
}
